package edu.ubb.scrumster.model.model;

public class Organization implements AbstractModel{
	int id;
	String name;

	public Organization(String name) {
		super();
		this.name = name;
	}

	public Organization(int id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public void validate() throws ModelException{
		if (this.name.equals("") || this.name.isEmpty()){
			throw new ModelException("The name is empty");
		}
	}

}
